<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap-theme.min.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/themes/bootstrap/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/themes/icon.css"/>

<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
</head>
<script type="text/javascript">
	$(function(){
		$.ajax({
			type: 'post',
			url: '${pageContext.request.contextPath}/showSellerAction',
			dataType: 'json',
			success: function(data){
				$.each(data, function(i, v){
					$("#infoTable").append("<tr><td><a href='${pageContext.request.contextPath}/restaurant/showdish.jsp'>"+v.sname+"</a></td>"
							+"<td>"+v.sphone+"</td><td>"+v.saddress+"</td><td>"+v.semail+"</td></tr>");
				})
			}
		});
	});
</script>
<body class="container-fluid">
	<div class="row">
		<div class="col-md-10 col-md-offset-1" style="margin-top: 30px">
			<table id="infoTable" class="table table-striped">
				<tr><td>商家名</td><td>商家电话</td><td>商家地址</td><td>商家邮箱</td></tr>
			</table>
		</div>
	</div>
</body>
</html>